package com.example.Controller;


import com.example.service.Userservice;
import com.example.user.user;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class userController {
    @Resource
    private Userservice userservice;


    @RequestMapping("/login")
    public Object login(@RequestParam String username,@RequestParam String password) {
        System.out.println(username);
        return userservice.login(username,password);
    }




}
